<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="org.apache.commons.lang.StringUtils"%>
<%@page import="org.apache.commons.lang.time.DateFormatUtils"%>
<%@page import="org.springframework.util.CollectionUtils"%>
<%@page import="java.util.Collection"%>
<%@ include file="../common/common_include.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String userName = SecurityContextHolder.getContext().getAuthentication().getName();
	String nowDate = DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss");
%>
<div >
		<form id="jobFORM" name="form" target="coreIframe"
			action="<%=request.getContextPath()%>/site/doJobAdd" method="post" enctype="multipart/form-data">
			<div class="breadcrumb">
				<div class="bcIcon"></div>
				<ul class="bcNav">
					<li>发布职位</li>
				</ul>
			</div>

			<table class="formTable">
				<tr>
					<td class="tdTitle">*职位：</td>
					<td><input class="inputText xs" type="text" name="jobName"
						 placeholder="" /><span class="errorTipWrap" id="errorTip_jobName"></span></td>
				</tr>
				<tr>
					<td class="tdTitle">*发布时间：</td>
					<td><input class="inputText xs" type="text" name="publicTime"
						 value="<%=nowDate%>"
						onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" /></td>
				</tr>
				<tr>
					<td class="tdTitle">*工作地点：</td>
					<td><input class="inputText xs" type="text" name="workAddress" 
					placeholder="示例：东莞虎门" /><span class="errorTipWrap" id="errorTip_workAddress"></span>
					</td>
				</tr>
				<tr>
					<td class="tdTitle">*招聘人数：</td>
					<td><input class="inputText xs" type="text" name="totalCount"
						 placeholder="示例：1" /><span class="errorTipWrap" id="errorTip_totalCount"></span></td>
				</tr>
				<tr>
					<td class="tdTitle">工作年限：</td>
					<td><input class="inputText xs" type="text" name="workAge"
						 placeholder="示例：3-5" /><span class="errorTipWrap" id="errorTip_workAge"></span></td>
				</tr>
				<tr>
					<td class="tdTitle">语言要求：</td>
					<td><input class="inputText xs" type="text" name="workLanguage"
						 placeholder="示例：普通话  粤语" /><span class="errorTipWrap" id="errorTip_workLanguage"></span></td>
				</tr>
				<tr>
					<td class="tdTitle">学历：</td>
					<td><input class="inputText xs" type="text" name="workEdu"
						 placeholder="示例：大专" /><span class="errorTipWrap" id="errorTip_workEdu"></span></td>
				</tr>
				<tr>
					<td class="tdTitle">薪水范围：</td>
					<td><input class="inputText xs" type="text" name="workPay"
						 placeholder="示例：面议" /><span class="errorTipWrap" id="errorTip_workPay"></span></td>
				</tr>
				<tr>
					<td class="tdTitle">*薪酬福利：</td>
					<td><input class="inputText s" type="text" name="workWelfare"
						 placeholder="示例：包吃住 单休" /><span class="errorTipWrap" id="errorTip_workWelfare"></span></td>
				</tr>
				<tr>
					<td class="tdTitle">上班地点：</td>
					<td><input class="inputText s" type="text" name="workPlace"
						 placeholder="示例：虎门镇北栅西坊工业区移动大厦8楼" /><span class="errorTipWrap" id="errorTip_workPlace"></span></td>
				</tr>
				<!-- 				
				<tr>
					<td class="tdTitle">职位职能：</td>
					<td><input class="inputText s" type="text" name="workFunction"
						 placeholder="" /><span class="errorTipWrap" id="errorTip_workFunction"></span></td>
				</tr> 
				-->																							
				<tr>
					<td class="tdTitle">*职位描述：</td>
					<td class="" colspan="2">
						<div style="padding-top: 10px; padding-bottom: 10px;">
							<textarea id="content" name="describe"
								style="width: 700px; height: 200px; visibility: hidden;"></textarea>
						</div>
						<span class="errorTipWrap" id="errorTip_describe"></span>
					</td>
				</tr>

				<tr>
					<td class="tdTitle"></td>
					<td>
						<div>
							<input class="input-btn-microsoft" type="submit" value="提交" id="click_btn">
							<a class="a-btn-microsoft"
								href="javascript:XF.Site.requestUrl('/site/jobList','jobList')">取消</a>
						</div>
					</td>
				</tr>
			</table>
		</form>
</div>
<iframe name="coreIframe" style="display: none"></iframe>
<script type="text/javascript">
	$(function() {
		XF.createKindEditor("content");
		$("input[name=jobName]").focus();
		$("#click_btn").click(function(){
			$("[id^=errorTip]").hide();
		});
	}); 
</script>
</html>